#!/bin/bash



yum -y install wget 
cd /opt
wget https://gitee.com/zzhlinux911218/software/raw/master/inotify-tools-3.13.tar.gz
tar -zxvf inotify-tools-3.13.tar.gz
cd inotify-tools-3.13
./configure
make && make install
ln -s /usr/local/lib/libinotifytools.so.0 /usr/lib64/libinotifytools.so.0
rm -rf /opt/inotify-tools-3.13.tar.gz
echo 8192000 > /proc/sys/fs/inotify/max_user_watches
clear
which inotifywait
